<template>
	<view>
		<vs-nav-bar :title="info.title" fixed topHeight></vs-nav-bar>
		<view class="wraper">
			<view class="content">
				<u-parse :html="content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {getDetailById} from '@/api/homeapi'
	export default{
		data(){
			return{
				content:'',
				info:{
					title:'',
					content:''
				}
			}
		},
		onLoad() {
			this.info = this.$Route.params.info
			this.$fn.loading(5)
			getDetailById({id:this.info.id,action:'starDetail'}).then(res=>{
				// console.log(res);
				this.content = res.data.obj.content
				uni.hideLoading()
			})
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 90%;
		margin: 0 auto;
		padding-top: 10px;
		padding-bottom: 100rpx;
	}
</style>
